package com.itdaan.portal.business.service;

import java.util.List;
import java.util.Map;

import com.itdaan.portal.common.exception.ServiceException;
/**
 * @author www.itdaan.com
 */
public interface CommonService {

	public String findLastTableName(String tableNamePre) throws ServiceException;
	
	public List<Map<String,Object>> findTableNames(Map<String,Object> condition) throws ServiceException;
	
	public String findColumns(String tableName) throws ServiceException;
	//动态创建内容表
	public void createPostTable(String fields,String tableName,long autoIncrement) throws ServiceException;
	//创建下一个内容表结构
	public void createNextPostTable(String webType) throws ServiceException;
	//drop表结构
	public void dropPostTable(String tableNamePre) throws ServiceException;
	//查询单条记录
	public Map<String,Object> findOne(Map<String,Object> map) throws ServiceException;
	//更新内容的投票次数
	public int updatePostVotes(Map<String,Object> map) throws ServiceException;
	//更新内容的查看次数
	public int updatePostViews(Map<String,Object> map) throws ServiceException;
}
